import request from '@/utils/request'

/* 获取物业费列表的接口 */
export const fetchPropertyfeeListAPI = (pageParams) => {
  return request({
    url: '/park/propertyfee',
    method: 'GET',
    params: pageParams
  })
}

/* 删除物业费列表额接口 */
export const deletePropertyfeeAPI = (id) => {
  return request({
    url: `/park/propertyfee/${id}`,
    method: 'DELETE'
  })
}

/* 添加账单的接口 */
export const addPropertyfeeAPI = (data) => {
  return request({
    url:"/park/propertyfee",
    method:"POST",
    data
  })
}

/* 获取租赁楼宇列表的接口 */
export const fetchBuildingListAPI = () => {
  return request({
    url: '/park/all/building',
    method: 'GET'
  })
}

/* 获取企业列表的接口 */
export const fetchEnterpriseListAPI = () => {
  return request({
    url:"/park/all/enterprise",
    method: 'GET'
  })
}

/* 更新物业费账单的接口 */
export const updatePropertyfeeAPI = (data) => {
  return request({
    url:"/park/propertyfee",
    method:"PUT",
    data
  })
}
